<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title> continue和break的用法</title>
</head>
<body>
    <script language='JavaScript' type='text/javascript'>
     var x;
     document.write('contnue语句');
     for(x=1;x<10;x++)
     {
         if(x%2==0) continue;
         document.write(x+'&nbsp');
     }
     document.write('<br>');
     document.write('break语句');
     for(x=1;x<=10;x++)
     {
         if(x%3==0) break;
         document.write(x+'&nbsp');
     }
    </script>
</body>
</html>